package com.cl.service.impl;

import com.cl.mapper.InandoutMapper;
import com.cl.pojo.Inandout;
import com.cl.service.InandoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InandoutServiceImpl implements InandoutService {

    @Autowired
    InandoutMapper inandoutMapper;
    @Override
    public int insertInRecord(Inandout inandout) {
        return inandoutMapper.insertInRecord(inandout);
    }

    @Override
    public int insertOutRecord(Inandout inandout) {
        return inandoutMapper.insertOutRecord(inandout);
    }

    @Override
    public List<Map<String, Object>> queryAllIn(int page, int limit) {
        return inandoutMapper.queryAllIn(page, limit);
    }

    @Override
    public int countAllIn() {
        return inandoutMapper.countAllIn();
    }

    @Override
    public List<Map<String, Object>> queryAllOut(int page, int limit) {
        return inandoutMapper.queryAllOut(page, limit);
    }

    @Override
    public int countAllOut() {
        return inandoutMapper.countAllOut();
    }
}
